import ajax from "@/config/ajax";

export default {
  getFileList: (params, isCancel = true) => (
    ajax({
      url: "/carbon/api/file/list",
      type: "get",
      data: params,
      isCancel
    })
  ),
  // 编辑文件内容
  saveFileContent: (params, isCancel = false) => (
    ajax({
      url: "/carbon/api/file/edit",
      type: "get",
      data: params,
      isCancel
    })
  ),
};
